Skip to content

docs: fix Astro integration guide for v2.8.0#633

Open
jjaimealeman wants to merge 1 commit intoSonicJs-Org:mainfrom
jjaimealeman:docs/fix-astro-integration-guide
Open

docs: fix Astro integration guide for v2.8.0#633
jjaimealeman wants to merge 1 commit intoSonicJs-Org:mainfrom
jjaimealeman:docs/fix-astro-integration-guide

Conversation

@jjaimealeman
Copy link

Summary

  • Updated collection example to use the actual scaffolded blog-posts.collection.ts schema format instead of the non-existent defineCollection() API
  • Added note that create-sonicjs already scaffolds the blog-posts collection (prevents users from creating duplicates)
  • Fixed getBlogPostBySlug() to use client-side .find() — server-side filter[slug][equals] params are not yet implemented in v2.8.0
  • Fixed getBlogPosts() to use client-side .filter() for published status
  • Added note about API token management not being available yet in v2.8.0
  • Added SSG rebuild note for dynamic content
  • Added "API Filters Not Working" troubleshooting section
  • Replaced curl sample content section with admin panel instructions (curl required non-existent Bearer token)

Context

Followed the guide end-to-end on a fresh create-sonicjs project and documented every issue encountered.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant